/**
 * @(#)ClientTaskInfo.java 2017年2月18日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.channel;


import java.io.Serializable;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.alibaba.fastjson.JSONObject;

/**
 * 客户端任务信息
 * @author <a href="mailto:zhouchao@xingbook.com" >周超</a>
 * @version 1.0.0
 */
public class ClientTaskInfo implements Serializable{
	/**
	 * serialVersionUID TODO 请描述这个变量的含义
	 */
	private static final long serialVersionUID = 5573675882581753480L;

	public static final Logger LOGGER = LoggerFactory.getLogger(ClientTaskInfo.class);

	private static final int STOP_MARK = 4;
	private static final int RESTART_MARK = 5;
	
	/**
	 * :0:什么都不做 1 手机重启  2手机关机  3升级母包  4：暂停做mark任务  5、重启做任务
	 */
	private int orderType;
	
	private String taskId;
	/**
	 * 任务内容
	 */
	private JSONObject taskContent;
	
	public int getOrderType() {
		return orderType;
	}
	public void setOrderType(int orderType) {
		this.orderType = orderType;
	}
	public JSONObject getTaskContent() {
		return taskContent;
	}
	public void setTaskContent(JSONObject taskContent) {
		this.taskContent = taskContent;
	}
	
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public boolean hasStopMark(){
		if (this.orderType==STOP_MARK){
			return true;
		}
		return false;
	}
	
	public boolean hasRestartMark(){
		if (this.orderType==RESTART_MARK){
			return true;
		}
		return false;
	}
	
}
